package builder.v2;

/**
 * Created by Administrator on 2022/9/29.
 */
public class Application {

    public static void main(String[] args) {

        House house = null;
        HouseBuilder builder = new SimpleHouseBuilder();
        Director director = new Director();
        director.setBuilder(builder);
        house = director.construct();


        director.setBuilder(new HighBuildingBuilder());
        house = director.construct();
    }
}
